package dateformat

import "time"

var TIME_FORMAT = "2006-01-02 15:04:05" //YYYY-MM-DD hh:mm:ss
var TIME_FORMAT2 = "20060102150405678"  //YYYYMMDDhhmmssSSS
var TIME_FORMAT3 = "20060102150405"     //YYYYMMDDhhmmss

func GetNowDate() string {
	timeNow := time.Now()
	return timeNow.Format(TIME_FORMAT)
}

func DateFormat(date time.Time, format string) string {
	return date.Format(format)
}
